package org.inspiration.dudu.message.service;

import org.inspiration.dudu.message.model.dto.MessageDTO;
import org.inspiration.dudu.message.model.entity.MessageEntity;
import org.inspiration.dudu.message.model.entity.SessionEntity;
import org.inspiration.dudu.message.model.vo.MessageVO;
import org.inspiration.dudu.message.model.vo.SessionVO;

import java.util.List;

public interface MessageService {
    MessageVO transToVO(MessageEntity messageEntity);
    MessageEntity transToEntity(MessageDTO messageDTO);

    void save(MessageEntity messageEntity);

    List<MessageVO> getRecentMessages(Long fromUserId, Long toUserId, Integer pageNum, Integer pageSize);
}
